project(controller LANGUAGES CXX)

file(GLOB_RECURSE cppfile "*.cpp")

foreach(file IN LISTS cppfile)
    message(STATUS "add ${file} to controller")
endforeach()

add_library(controller OBJECT ${cppfile})

target_include_directories(controller PUBLIC
    ${loguru_SOURCE_DIR}/
    ${tshark_SOURCE_DIR}/
    ${FMT_SOURCE_DIR}/include/
    ${jsoncpp_SOURCE_DIR}/include
    ${util_SOURCE_DIR}
    ${ip2region_SOURCE_DIR}
    ${httplib_SOURCE_DIR}/
    ${3rd}/
    ${sql_SOURCE_DIR}/
    ${controller_SOURCE_DIR}/
)

target_link_directories(controller PUBLIC
    tshark-static
    loguru-static
    fmt::fmt-header-only
    jsoncpp_static
    ip2region-static
    util-shared
)
